﻿<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>ශ්‍රී සුගත සුභද්‍රා ධර්ම විද්‍යාලය - ගලහිටියාව</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src="./public/js/jquery.js"></script>
	<script type="text/javascript" src="./public/js/jquery.ui.core.js"></script>
	<script type="text/javascript" src="./public/js/jquery.ui.datepicker.js"></script>
	<script type="text/javascript" src="./public/js/jquery.validate.js"></script>
	<script type="text/javascript" src="./public/js/jquery.dataTables.js"></script>
	<script type="text/javascript" src="./public/js/TableTools.js"></script>
	<script type="text/javascript" src="./public/js/ZeroClipboard.js"></script>
	
	<link rel="stylesheet" href="./public/css/jquery/jquery.ui.all.css"/>
	<link rel="stylesheet" href="./public/css/jquery/data_table.css"/>
	<link rel="stylesheet" href="./public/css/jquery/data_table_jui.css"/>
	<link rel="stylesheet" href="./public/css/jquery/TableTools.css"/>
	<link rel="stylesheet" href="./public/css/layout.css"/>
	<link rel="stylesheet" href="./public/css/menu.css"/>
	<link rel="stylesheet" href="./public/css/style.css"/>
	<link rel="stylesheet" href="./public/css/form.css"/>
	
	<script type="text/javascript">
		$(function(){
			$('.datePicker').datepicker({
				dateFormat: 'yy-mm-dd',
				changeMonth: true,
				changeYear: true,
				monthNamesShort: ['ජනවාරි','පෙබරවාරි','මාර්තු','අප්‍රේල්','මැයි','ජුනි','ජූලි','අගෝස්තු','සැප්තැම්බර්','ඔක්තෝම්බර්','නොවැම්බර්','දෙසැම්බර්'],
				dayNamesMin: ['ඉරි', 'සඳු', 'අඟ', 'බදා', 'බ්‍රහ', 'සිකු', 'සෙන']					
			});
		});
	</script>
</head>
<body>
	<div id="wrapper-outer">
		<div id="header">
			<?php include './pages/template/header.php'?>
		</div>
		<?php if($_SESSION['page'] && $_SESSION['page'] != "login.php"){ ?>
		<div id="main-menu">
			<?php include './pages/template/menu.php'?>
		</div>
		<div id="content">
			<?php include './pages/'.$_SESSION['page'];	?>
		</div>
		<?php }else{
			include './pages/login.php';
		}?>
	</div>
	<?php
		// Clear all previous messages when refresh.
		if($_SESSION['log-err']) session_unregister('log-err');
		if($_SESSION['log-info']) session_unregister('log-info');
	?>
</body>
</html>
